package chapter3.section4;

/**
 * 程序 3-10：带标签的break语句
 *
 * @author 张玮婷 20245080902061
 */

public class BreakDemo {
    public static void main(String[] args) {
        a:
        for (int i = 0; i < 5; i++)
            for (int j = 1; j <= 5; j++) {
                System.out.println("i:" + i + ",j:" + j);
                if (j == 2)
                    break a;
            }
    }
}
